import Request from '../utils/http.js';

export default {
  getOpenId: function(params) {
    return Request.httpRequest({
      url: '/api/wechatqifu/getSessionKey',
      method: 'POST',
      params: params
    })
  },
  getUserInfo: function(params) {
    return Request.httpRequest({
      url: '/api/user/wechat_login',
      method: 'POST',
      params: params
    })
  },

  getNotice: function(params) {
    return Request.httpRequest({
      url: '/api/index/getConfig',
      method: 'POST',
      params: params
    })
  },
  
  //获取用户信息
  getzegotoken_chat: function(params) {
  	return Request.httpTokenRequest({
  		url: '/api/Jianghunew/getzegotoken',
  		method: 'POST',
  		params: params
  	});
  },
  
  //获取用户信息
  get_major_list_id: function(params) {
  	return Request.httpTokenRequest({
  		url: '/api/Jianghunew/get_major_list_id',
  		method: 'POST',
  		params: params
  	});
  },
  
}